<template>
	<view class=" beijingse">
		<!-- 轮播图 -->
		<view class="u-demo-block">
			<u-swiper :list="list6" @change="e => currentNum = e.current" :autoplay="false" indicatorStyle="right: 20px"
				height="375" imgMode="aspectFit " indicator indicatorMode="line">
				<view slot="indicator" class="indicator-num">
					<text class="indicator-num__text">{{ currentNum + 1 }}/{{ list6.length }}</text>
				</view>
			</u-swiper>
		</view>
		<view class="mainpadding">
			<view class="mainpadding ffffff radius">
				<view class="qianshu">￥{{dataAll.price}}</view>
				<view class="margin_top titletext">{{dataAll.title}}</view>
			</view>
		</view>
		<view class="ffffff mainpadding">
			<view class="bigbtext textcenter">商品详情</view>
			<view class="margin_top">
				<u-parse :content="dataAll.content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				currentNum:0,
				list6: [],
				listid:"",
				dataAll:{
					price:"",
					title:"",
					content:""
				}
			}
		},
		onLoad(options) {
			this.listid= options.id
			this.init()
		},
		methods: {
			init() {
				httpRequest.request('/api/goods/goodsDetail', 'POST', {
					goods_id: this.listid
				}, false, false, true).then(res => {
					this.dataAll = res.data
					this.list6 = res.data.images_text
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
.qianshu{
	font-size: 48rpx;
	font-family: DIN-Bold, DIN;
	font-weight: bold;
	color: #FAB536;
}
</style>
